using System;
using System.Collections.Generic;
using System.Text;

namespace NDomain.ExampleModels.BloggingSystem
{
    [Entity]
    public class User
    {
        private long _id;

        public virtual long Id
        {
            get { return _id; }
        }

        private string _name;

        public virtual string Name
        {
            get { return _name; }
        }
       
        public static User NullInstance = new NullUser();
    }

    internal class NullUser : User, NullObject
    {
        public override long Id
        {
            get { return 0; }
        }

        public override string Name
        {
            get { return "No User"; }
        }
    }

    
}
